Customer API
7m6-x8n/Getting Started with Customer API
(FOR UAT ONLY)
Get UAT credentials and test data from GCash
Environment credentials:
client_id
client_secret
AES key
Test data:
Mobile telephone number (mobtel)
MPIN
OTP
Request bearer token
POST https://access.lab.mynt.xyz/gconnect/oauth2/token
- Add client_id, client_secret, grant_type under Body
- Key value pairs must be in x-www-form-urlencoded
- Set grant_type to client_credentials
- Copy generated access_token
Proceed to customer login and consent screens
GET https://access.lab.mynt.xyz/gconnect/customer/login
- Add callbackUrl, sessionToken, under Params
- callbackURL must start with https://
- i.e https://www.google.com
- Add access_token under Authorization, type set to Bearer Token
- Add client_id, X-Tracker under Headers
- X-Tracker can be any alphanumeric value
- Send GET request
- Open Postman Console
- Copy entire https://uat.m.gcash.com/… link at the bottom
- Open link in browser
- Use test data provided
- Provide consent
Decrypt customer data
- Copy the response body after the redirect
- Copy the _encrypted_data _value - this is the user's Encrypted Data
- Copy the iv value - this is the Initialization Vector
- Use a decrypting service (i.e https://string-o-matic.com/aes-decrypt)
- Use Base64, key size 256
- Add AES key, IV
- Customer data has now been decrypted!
Important links:
Bearer token
https://access.lab.mynt.xyz/gconnect/oauth2/token
Customer login
https://access.lab.mynt.xyz/gconnect/customer/login
Base64 decode tool
AES decrypt tool